package au.edu.swin.MelbourneMap;

import java.io.*;
import java.awt.geom.*;

/**
 * Program entry point. 
 *
 * @author  Alexis Wellavize (s/n: 6033482)<br/>
 *           Dotan Tamir (s/n: 6532969)
 * @since   v1, created:  17/09/2012
 * @version v2, modified:  22/09/2012
 *
 */
 
public class Program
{
    public static void main(String[] args)
    {
        Model model = new Model();
        View view = new View( model );
        Controller controller = new Controller( view, model );
        
        //try
        //{
        //    RoadData data = new RoadData();
        //    data.setDataFileName( "D:\\workspace\\ADJ\\Assignment_2\\v4\\data\\test.txt" );
        //    data.readFile();
        //    String output = data.toString();
        //    System.out.println( output );
        //
        //    // AGONIS DR|306452|5824677|306379|5824664|2|2
        //    // AGONIS DR|306379|5824664|306235|5824582|2|2
        //    // AGONIS DR|306235|5824582|306177|5824579|2|2
        //    
        //    Point2D p1 = new Point2D.Double( 306452.0, 5824677.0 );
        //    Point2D p2 = new Point2D.Double( 306177.0, 5824579.0 );
        //    data.showShortestPath( p1, p2 );
        //    data.writeFile( "D:\\workspace\\ADJ\\Assignment_2\\v4\\data\\test.txt" );
        //
        //}
        //catch ( IOException io )
        //{
        //    System.out.println( "ERR: Error reading data file!" + io.toString() );
        //}
    }
}